home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
VI5.ARJ
/
VIDEMO.EXE
/
SAMPLE3.PRG
< prev
next >
Wrap
Text File
|
1992-01-21
|
964b
|
28 lines
************************************************************************
* SAMPLE3.PRG Peter M. Freese
* 1/20/92 Pinnacle Publishing, Inc.
*
* Source code demonstration of Group Box and Radio Button
************************************************************************
#include "vi.ch"
#include "inkey.ch"
FUNCTION Sample3()
LOCAL oWin,oGB
// create a window
oWin := VWindowNew(12,20,27,60,0,WS_DOUBLEBORDER+WS_TITLE,;
HIWHITE,GREEN,"Group Box and Radio Button Classes")
// create a group box control
oGB := VGroupBoxNew(oWin,3,10,10,30,;
GB_BORDER+GB_TITLETHRU+GB_TITLELEFT,"Flavor")
// create check box control
VRadioButtonNew(oWin,oGB,K_ALT_A,1,2,0,BLACK,.T.,"&Apple")
VRadioButtonNew(oWin,oGB,K_ALT_O,3,2,0,BLACK,.F.,"&Orange")
VRadioButtonNew(oWin,oGB,K_ALT_L,5,2,0,BLACK,.F.,"&Lemon")
// return window object to calling routine
RETURN oWin